package com.xx.questionnaire.cis.UserOperation.Register.services;

import org.apache.log4j.Logger;

import com.xx.questionnaire.cis.UserInfo.entity.User;
import com.xx.questionnaire.dao.UserDaoI;
import com.xx.questionnaire.dao.realize.UserDao;

/**
 * 注册模块业务逻辑层的实现类
 * @author Administrator
 *
 */
public final class RegisterService implements RegisterIService {
	static Logger log = Logger.getLogger(RegisterService.class);
	/**
	 * 判断注册是否成功。
	 */
	public boolean RegisterBoolean(User UserRegisterObject) {
			UserDaoI dao = new UserDao();
			if(UserRegisterObject.getName()==null)
				return false;
			int size = dao.getUserID(UserRegisterObject.getName());
			if(size==0){
				log.info("允许注册。准备下一步操作");
				
			}else{
				return false;
			}
		return false;
	}

	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
